import {createRouter, createWebHashHistory} from 'vue-router'


const routes = [
    {
        path: "/",
        redirect: "/Login"
    },
    {
        name: "Login",
        path: "/Login",
        component: () => import("../components/Login")
    },
    {
        name: "MainPage",
        path: "/MainPage",
        component: () => import("../components/MainPage")
    },
    {
        name: "BookingPage",
        path: "/BookingPage",
        component: () => import("../components/booking/BookingPage")
    },
    {
        name: "ExpPage",
        path: "/ExpPage",
        component: () => import("../components/processing/ExpPage")
    },
    {
        name: "ProcPage",
        path: "/ProcPage",
        component: () => import("../components/processing/ProcPage")
    },
    {
        name: "MyProject",
        path: "/MyProject",
        component: () => import("../components/MyProject")
    },
    {
        name: "MyAdmin",
        path: "/MyAdmin",
        component: () => import("../components/MyAdmin")
    },
    {
        name: "AddStep",
        path: "/AddStep",
        component: () => import("../components/addsteppage/AddStep")
    },
    {
        name: "AddUnit",
        path: "/AddUnit",
        component: () => import("../components/addsteppage/AddUnit")
    },
    {
        name: "CheckUnitState",
        path: "/CheckUnitState",
        component: () => import("../components/checkstatepage/CheckUnitState")
    },
    {
        name: "CheckStepState",
        path: "/CheckStepState",
        component: () => import("../components/checkstatepage/CheckStepState")
    },
    {
        name: "AddExperiment",
        path: "/AddExperiment",
        component: () => import("../components/addsteppage/AddExperiment")
    }
]

const router = createRouter({
    history: createWebHashHistory(),
    routes
})

export default router
